import React from 'react'
import { useList } from '../../context/ListProvider'
import Item from './Item'

const List = () => {
    const {state:{list}} = useList();
    return <div>
        列表
        {
            list.map(item => <Item key={item.id} item={item} /> )
        }
    </div>
}


export default List